home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1999 February
/
CT_SW9902.ISO
/
mac
/
software
/
wissen
/
daten
/
gnuplot.hqx
/
gnuplot.2.0b4
/
Interapplication
/
C Examples
/
gnuplotInterface.h
< prev
next >
Wrap
Text File
|
1997-04-27
|
2KB
|
78 lines
/****** gnuplot Application Interface ******
Version 1.0, DCS, 1/10/95
Version 1.1, DCS, 1/31/95 - Changes for a11 of gnuplot
Version 2.0, DCS, 4/97 - Updated for 2.0 - somewhat incomplete.
These routines allow external programs to send events to the
gnuplot application. Consider them to be demos only.
GnuplotLanuchApplication: Launches the gnuplot application.
GnuplotExecuteCommand: Executes a gnuplot command passed as a string.
GnuplotDoScript: Executes a gnuplot script given an input FSSpec.
GnuplotPlot: Plots files, data, and/or the clipboard.
GnuplotInitializeObjects should be called before calling any
of the following functions.
GnuplotShutDownObjects frees the memory allocated by GnuplotInitializeObjects.
GnuplotQuitApplication: Tells gnuplot to quit.
*/
#ifndef __GNUPLOTINTERFACE
#define __GNUPLOTINTERFACE
#define DOEXTERNC 1
#if DOEXTERNC
#ifdef __cplusplus
extern "C" {
#endif
#endif
OSErr GnuplotLaunchApplication(); /* Leaves gnuplot in the background */
OSErr GnuplotLaunchApplicationToFront(); /* Brings gnuplot to the front */
OSErr GnuplotLaunchApplicationCore(long flags); /* Do whatever you want */
OSErr GnuplotExecuteCommand(char *theCommand, long length, char *response, long responseLength);
OSErr GnuplotPlot(FSSpec *inputFile, long fileCount, char *data, long dataSize,
short useClipboard, short do3d, long lineType, char *response, long responseLength);
OSErr GnuplotDoScript(FSSpec *inputFile, char *response, long responseLength);
void GnuplotQuitApplication();
/* Object function declarations */
OSErr GnuplotInitializeObjects();
void GnuplotShutDownObjects();
OSErr GnuplotSetWorkingFolder(char *newFolder);
#ifndef gp_type_default
#define gp_type_default 0
#define gp_type_lines 'typ1'
#define gp_type_points 'typ2'
#define gp_type_impulses 'typ3'
#define gp_type_linespoints 'typ4'
#define gp_type_dots 'typ5'
#define gp_type_steps 'typ6'
#define gp_type_fsteps 'typ7'
#define gp_type_errorbars 'typ8'
#define gp_type_xerrorbars 'typ9'
#define gp_type_yerrorbars 'ty10'
#define gp_type_xyerrorbars 'ty11'
#define gp_type_boxes 'ty12'
#define gp_type_boxerrorbars 'ty13'
#define gp_type_boxxyerrorbars 'ty14'
#define gp_type_vector 'ty19'
#endif
#if DOEXTERNC
#ifdef __cplusplus
}
#endif
#endif
#endif